//
//  DataHandle.h
//  DayByDay
//
//  Created by dllo on 16/5/28.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PosterDetailSongsModel.h"

@interface DataHandle : NSObject

+ (instancetype)shareDataBaseHandle;
- (void)openDB;
- (void)exeSqlWith:(NSString *)sql showLog:(NSString *)log;
- (void)createTableWithName:(NSString *)name;
- (void)insertPosterSongsModel:(PosterDetailSongsModel *)model initoTable:(NSString *)table;
- (void)deletePosterSongsModel:(PosterDetailSongsModel *)model intoTable:(NSString *)table;
- (BOOL)selectPosterSongsModelFromTable:(NSString *) table PrimaryKey:(NSString *)primary;
- (void)insertMany:(NSMutableArray<PosterDetailSongsModel *>*)array intoTable:(NSString *)table;
- (void)dropTable:(NSString *)table;
- (NSMutableArray *)selectPosterSongsModelFromTable:(NSString *) table;


@end
